#ifndef MRR_H_
#define MRR_H_

#include "recbase.h"
#include "rectype.h"
#include "stdffield.h"
#include <string>

namespace opsrc {
    namespace stdf {

        class Mrr : public opsrc::stdf::RecBase
        {
        public:
            Mrr(stdf_rec stdfrec,  int reclen, std::ios::pos_type fileRecFirstBytePosition, int orderindex, endian e, char* buf);
            virtual ~Mrr();

            void setFinishTime(StdfField<long> tm);
            const StdfField<long> getFinishTime() const;

            void setDispCode(StdfField<string> dispcod);
            const StdfField<string> getDispCode() const;

            void setUserDescription(StdfField<string> usrdesc);
            const StdfField<string> getUserDescription() const;

            void setExecDescription(StdfField<string> execdesc);
            const StdfField<string> getExecDescription() const;

            void readFields(char *buf);

        protected:
            Mrr();

        private:
            StdfField<long> finish_t;
            StdfField<string> disp_cod;
            StdfField<string> usr_desc;
            StdfField<string> exc_desc;

            endian en;
            bool decodeFields;

        };

    }		// namespace stdf
}			// namespace opsrc

#endif /*MRR_H_*/
